import Layout from '@/layout/layout'
import userIndex from '@/views/system/user/userInfo.vue'

export default [
  {
    path: '/system',
    name: 'system',
    component: Layout,
    redirect: '/system/userinfo', //默认访问路径
    meta: {
      title: '系统管理',
      icon: 'excel',
      roles: ['admin', 'editor']
    },
    children: [
      {
        path: 'userinfo',
        name: 'userinfo',
        // component: () => import('@/views/system/user/user'),
        component: userIndex,
        meta: { title: '个人信息', icon: 'user' }
      },
      {
        path: 'userList',
        name: 'userList',
        component: () => import('@/views/system/user/userList.vue'),
        meta: { title: '系统用户', icon: 'markdown' }
      },
      {
        path: 'loginState',
        name: 'loginState',
        component: () => import('https://gitee.com/banjilin/pet-health'),
        meta: { title: '系统在线用户', icon: 'markdown' }
      }
    ]
  }
]
